package com.molichuxing.services.infrastructure.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.UserWhiteBean;
import com.molichuxing.services.infrastructure.dao.UserWhiteMapper;
import com.molichuxing.services.infrastructure.service.UserWhiteService;

@Service("userWhiteService")
public class UserWhiteServiceImpl implements UserWhiteService{
	
	@Autowired
	private UserWhiteMapper userWhiteMapper;

	
	@Override
	public Boolean getByPhone(String phone, String verificationCode,Integer userSource) {
		List<UserWhiteBean> list = userWhiteMapper.getByPhone(phone, verificationCode,userSource);
		if(null == list || list.isEmpty()) {
			return false;
		}
		return true;
	}

}
